package com.zhengxin.one.service.impl;

import com.zhengxin.one.entity.Menu;
import com.zhengxin.one.mapper.MeunMapper;
import com.zhengxin.one.service.MeunService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class MeunServiceIpml implements MeunService{
    @Autowired
    private MeunMapper meunMapper;
    @Override
    public List<Menu> Smenu(){
        return meunMapper.getMenu();
    }

    @Override
    public List getMenus(String staff_id) {
        return meunMapper.getMenus(staff_id);
    }

    @Override
    public Menu getMenuss(String menu_id) {
        return meunMapper.getMenuss(menu_id);
    }

    @Override
    public List getAdders(int type) {
        return meunMapper.getAdder(type);
    }

    @Override
    public List getSps(String addr_name) {
        return meunMapper.getSp(addr_name);
    }

    @Override
    public List getAps(String addr_name) {
        return meunMapper.getAp(addr_name);
    }

    @Override
    public List getCps() {
        return meunMapper.getCp();
    }
}
